package com.fla.aiba.repository;

import com.fla.aiba.entity.live.LiveRoom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by qudingyi on 2017/4/24.
 */
public interface LiveRoomRepository extends JpaRepository<LiveRoom,Long> {

    /**
     * 根据直播状态加载直播
     * @param status
     * @return
     */
    List<LiveRoom> findByStatusOrderByOnlineNumberDesc(Integer status);



}
